#ifndef __MUTEXLOCK_H
#define __MUTEXLOCK_H

#include "noncopyable.hpp"
#include <pthread.h>
namespace moqi
{
class MutexLock:public Noncopyable
{
public:
    MutexLock();
    ~MutexLock();
    void lock();
    void unlock();
    pthread_mutex_t* getMutex();
private:
    pthread_mutex_t _mutex;
};
}
#endif //!__MUTEXLOCK_H
